package com.enhe.gck.fg;

import com.kuangkie.carbon.panel.CarbonPanel;
import com.kuangkie.carbon.record.FGRecord;
import org.springframework.stereotype.Repository;
import com.kuangkie.carbon.fg.FuncGroupContext;
import com.kuangkie.carbon.fg.ImproveResultFactory;
import com.kuangkie.carbon.fg.SecondRoundImproveFuncGroup;
import com.kuangkie.carbon.record.FGRecordComplexus;
import com.kuangkie.carbon.record.ProRecord;
import com.enhe.gck.CarbonBaseConstant; //模型Code
import com.enhe.gck.CarbonEnumKeyValue; //枚举字典信息
import com.enhe.gck.item.FileTemplateHWANE18473Item; // 模型属性Code

@Repository(value = "hwane18473366042330866425862")
public class FileTemplateHWANE18473BNB implements SecondRoundImproveFuncGroup{
	
	@Override
	public void secondImprove(FuncGroupContext context, ProRecord proRecord, FGRecordComplexus recordComplexus,
			ImproveResultFactory improveResultFactory) {
	}

	public byte[] getFile(long code){
		FGRecord fGRecord=CarbonPanel.getRecordQueryFactory(CarbonBaseConstant.文件模板_wjmb).getProConJunctionFactory().addEqual(FileTemplateHWANE18473Item.基本属性组_编号,code)
				.goBack().queryARecord();
		return fGRecord.getFileBody(FileTemplateHWANE18473Item.基本属性组_文件);
	}

	public FGRecord getInfo(long code){
		FGRecord fGRecord=CarbonPanel.getRecordQueryFactory(CarbonBaseConstant.文件模板_wjmb).getProConJunctionFactory().addEqual(FileTemplateHWANE18473Item.基本属性组_编号,code)
				.goBack().queryARecord();
		return fGRecord;
	}
	public byte[] getInfoFile(FGRecord fGRecord){
		return fGRecord.getFileBody(FileTemplateHWANE18473Item.基本属性组_文件);
	}
}
